|
注意修改您的存放路径
- #!/usr/bin/lftp -f
- lcd /data/archlinux
- # delete the old database files
- !/bin/rm -rf core/os/i686/core\.*
- !/bin/rm -rf core/os/x86_64/core\.*
- !/bin/rm -rf extra/os/i686/extra\.*
- !/bin/rm -rf extra/os/x86_64/extra\.*
- !/bin/rm -rf community/os/i686/community\.*
- !/bin/rm -rf community/os/x86_64/community\.*
- !/bin/rm -rf testing/os/i686/testing\.*
- !/bin/rm -rf testing/os/x86_64/testing\.*
- #open mirrors.ustc.edu.cn/archlinux/
- open ftp.archlinux.org/
- # Use 'cd' to change into the proper directory on the mirror, if necessary.
- mirror -cve -X *i686* core &
- mirror -cve -X *i686* extra &
- mirror -cve -X *i686* community &
- mirror -cve -X *i686* testing &
- mirror -cve -X *x86_64* core &
- mirror -cve -X *x86_64* extra &
- mirror -cve -X *x86_64* community &
- mirror -cve -X *x86_64* testing &
- lcd pool
- cd pool
- mirror -cve -X *i686* community &
- mirror -cve -X *i686* packages &
- mirror -cve -X *x86_64* community &
- mirror -cve -X *x86_64* packages &
复制代码 |
|